Ext.namespace('Rumore.form');

Rumore.form.noRumoreWinEdit = function(config){


	var _this = this;

	var form = new Rumore.form.noRumoreForm1({
		//title: 'dati generali',
		autoHeight:true
	})

 
	this.setRecord = form.setRecord;

	var defaults = {
		layout:'fit',
		modal: true,
		width:700,
		height:450,
		frame:true,
		title:'Nulla Osta Acustico',
		items: [form],
		closable:false,
		buttons:[
//			{
//				text:'chiudi',
//				handler: function(){
//					
//					_this.close();
//				
//				}
//			
//			},
			{
				text:'salva',
					handler: function(){
						form.saveFormData();
					}
		}],
		closeAction: 'hide'

	}


	//funzione di fill della form
	
	

	Rumore.form.noRumoreWinEdit.superclass.constructor.call(this, Ext.apply({},  config , defaults));

}

Ext.extend(Rumore.form.noRumoreWinEdit, Ext.Window);

//registro l'oggetto EditForm
Ext.reg('norumorewinedit', Rumore.form.noRumoreWinEdit)